<?php
/**
 * @version      BOSSCMS-Free
 * @trademark    BOSSCMS
 * @copyright    Copyright © by BOSSCMS-Free (https://www.bosscms.net/) 保留所有权利
 * @license      https://gitee.com/Greenpeas/BOSSCMS/license/ 和 https://www.bosscms.net/freelicense/
 * @link         https://www.bosscms.net/
 * @author       温州软界网络技术有限公司
**/
date_default_timezone_set('Asia/Shanghai');
header('Content-Type:text/html; charset=utf-8');
header('X-UA-Compatible:IE=edge,chrome=1');
error_reporting(E_PARSE|E_CORE_ERROR|E_COMPILE_ERROR|E_USER_ERROR);
@set_time_limit(0);

define('IS_OK', true);
/* 根目录地址 */
define('ROOT_PATH', $_SERVER['DOCUMENT_ROOT']&&is_file($_SERVER['DOCUMENT_ROOT'].'/system/basic/class/into.class.php')?str_replace('/',DIRECTORY_SEPARATOR,$_SERVER['DOCUMENT_ROOT'].'/'):substr(dirname(__FILE__),0,-6));
/* 系统文件夹 */
define('SYSTEM_PATH', ROOT_PATH."system/");
/* 占位符 P */
define('P', 'BOSSCMS@DEL0T_T');
/* 服务器时间 */
define('TIME', time());
/* 检查安装文件 */
if(!is_file(SYSTEM_PATH.'install.lock')){
	$relative = '';
	if($count = substr_count(str_replace(substr(dirname(__FILE__),0,-7),'',getcwd()),DIRECTORY_SEPARATOR)){
		for($i=1; $i<=$count; $i++){
			$relative .= '../';
		}
	}
	header('Location:'.$relative.'install/index.php');
	die();
}
require_once SYSTEM_PATH.'basic/class/into.class.php';
into::load();
?>